import publicConfig from "./public/default.config";

// @ts-ignore
export default defineNuxtConfig({
  compatibilityDate: '2025-03-17',
  devtools: { enabled: true },
  modules: ['@pinia/nuxt', '@element-plus/nuxt','nuxt-swiper'],
  elementPlus: {},
  render: {
    gzip: {
      threshold: 10240, // 文件大小超过 10KB 才会被压缩
      gzipOptions: {
        level: 5, // 压缩级别，可选值为 0-9，9 最高压缩率但耗费更多的 CPU
      },
    },
  },
  runtimeConfig: {
    public: publicConfig
  },
  postcss: {
    plugins: {
      "@tailwindcss/postcss": {},
      autoprefixer: {},
    },
  },
  css: ["~/assets/style/main.scss","element-plus/theme-chalk/display.css"],
})
